package it.unibz.ti2.internetPizzeria.entities;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Class representing product that is drink
 */
@Entity
@Table(name = "PRODUCTS")
@DiscriminatorValue("Drink")
public class Drink extends Product implements Comparable<Drink> {

	public int compareTo(Drink arg0) {
		return name.compareTo(arg0.getName());
	}
}
